package com.arvato.minipro.bean.bean_do.user;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.arvato.common.util.UUIDUtil;


/**
 * 电商小程序用户 ec_user对应的实体类
 * @author smallking
 *
 */
public class EcUserDo {

    private String userId = UUIDUtil.getUUID("user");
    /**
     * 当前用户所在微信应用的openid
     */
    private String wxOpenid ;
    /**
	 * 当前用户在微信开放者平台的unionId
	 */
	private String wxUnionid;
	/**
	 * 当前用户所属的微信应用id
	 */
	private String appid;
	/**
     * 账号
     */
    private String account;
    /**
     * 密码
     */
    private String password;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 用户的微信头像链接
     */
    private String avatarUrl;
    /**
     * 真实姓名
     */
    private String realname;
    /**
     * 电话
     */
    private String tel;
    /**
     * 邮箱
     */
    private String email;
    /**
     * qq号码
     */
    private String qq;
    /**
     * 微信号
     */
    private String wechat;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date brithday;
    /**
     * 地址
     */
    private String address;
    /**
     * 备注
     */
    private String note;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    
    private Date lastoperDate;

    private String lastoperUser;

    private Integer lastoperType;

    private Integer status;


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

	public String getWxOpenid() {
		return wxOpenid;
	}

	public void setWxOpenid(String wxOpenid) {
		this.wxOpenid = wxOpenid;
	}
	
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getWxUnionid() {
		return wxUnionid;
	}

	public void setWxUnionid(String wxUnionid) {
		this.wxUnionid = wxUnionid;
	}

	public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }
    
    public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }
    
    public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBrithday() {
        return brithday;
    }

    public void setBrithday(Date brithday) {
        this.brithday = brithday;
    }
    
    public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getLastoperDate() {
        return lastoperDate;
    }

    public void setLastoperDate(Date lastoperDate) {
        this.lastoperDate = lastoperDate;
    }

    public String getLastoperUser() {
        return lastoperUser;
    }

    public void setLastoperUser(String lastoperUser) {
        this.lastoperUser = lastoperUser == null ? null : lastoperUser.trim();
    }

    public Integer getLastoperType() {
        return lastoperType;
    }

    public void setLastoperType(Integer lastoperType) {
        this.lastoperType = lastoperType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}